/**
 * Typography 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/typography/style';

export const typographyThemeConfig: Partial<ComponentToken> = {
  titleMarginTop: '1.2em' as any,
  titleMarginBottom: '0.5em' as any,
};

export const getTypographyTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...typographyThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as TypographyComponentToken } from 'antd/es/typography/style';

